# coding:utf-8
import threading

import redis
import time

conn = redis.Redis(host='192.168.3.25')


def notrans():
    print conn.incr('notrans:')
    time.sleep(.1)
    conn.incr('notrans:', -1)


if __name__ == "__main__":
    for i in xrange(3):
        threading.Thread(target=notrans).start()
    time.sleep(.5)







